package com.cd.explain.jpa.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @Description  知识库链接表
 * @Author lqq
 * @Date 2025/5/11 10:51
 **/

//@Entity
@Data
@Table(name = "db_link_collect",
        indexes = {
                @Index(name = "idx_link_class", columnList = "linkClass")})
@NoArgsConstructor
@AllArgsConstructor
public class LinkCollection {

    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    //脚本灵感 摄影学习 等
    @Column(name = "link_class")
    private String linkClass;

    //tag
    @Column(name = "tag")
    private String tag;

    @Column(name = "owner")
    private String owner;

    @Column(name = "link")
    private String link;

    @Column(name = "remark")
    private String remark;
}
